<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 赋值 
        // 赋址
        var a={name:"你好"};//[]数组对象 {自定义对象} a是对象  a是引用类型 
                           //存在堆里
        var b=a;
        console.log(a);//你好
        console.log(b);//你好
        b.name="王者童谣"
        console.log(a);//"王者童谣"
        console.log(b);//"王者童谣"


    </script>
    
</body>
</html>